//
//  GOPaddle.m
//  Pong
//
//  Created by Samuel Goodwin on 2/21/07.
//

#import "GOPaddle.h"


@implementation GOPaddle

- (int)height
{
	return height;
}

- (void)setHeight:(int)newHeight
{
	height = newHeight;
}

- (id)initWithOrigin:(NSPoint)pointA andHeight:(int)upHeight
{
	[super init];
	height = upHeight;
	center = pointA;
	NSRect aRect = NSMakeRect(pointA.x, (pointA.y -height), 1, 2*height);
	shape = [[NSBezierPath bezierPathWithRect:aRect] retain];
	[shape setLineWidth:5.0];
	[[NSColor blackColor] set];
	return self;
}

- (id)init
{
	NSPoint aPoint = NSMakePoint(0.0, 0.0);
	return [self initWithOrigin:aPoint andHeight:20];
}

@end
